NevronOpenVision
Nevron.Nov.UI Namespace / NMenuSplitButton Class / FillFromEnum Method / FillFromEnum<TEnum,THeader>(THeader[]) Method
In This Topic
    FillFromEnum<TEnum,THeader>(THeader[]) Method
    In This Topic
    Fills the menu split button from enum. Assigns the corresponding enum value to the Tag property of each menu item.
    Syntax
    public void FillFromEnum<TEnum,THeader>( 
       THeader[] headers
    )
    where TEnum: new(), struct

    Parameters

    headers

    Type Parameters

    TEnum
    THeader
    Remarks
    The names of the enum options are localized. If you want them not to be localized use the FillFromEnum method overload and pass false for the localizeEnumValues parameter.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also